<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.11.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>cppMISC: include/details/aliOSS.hpp 源文件</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<script type="text/javascript" src="../../clipboard.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../cookie.js"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/javascript" src="../../darkmode_toggle.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">cppMISC<span id="projectnumber">&#160;v1.1</span>
   </div>
   <div id="projectbrief">cppMisc 文档系统</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.11.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "../../search/",'.html');
/* @license-end */
</script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(1); });
/* @license-end */
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('../../',true,false,'search.php','搜索',false);
  $(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){ initResizable(false); });
/* @license-end */
</script>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="../../dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="../../dir_ae5bdaf1b45f3c0e6fd5dd3984d2eafd.html">details</a></li>  </ul>
</div>
</div><!-- top -->
<div id="doc-content">
<div class="header">
  <div class="headertitle"><div class="title">aliOSS.hpp</div></div>
</div><!--header-->
<div class="contents">
<a href="../../da/d3c/ali_o_s_s_8hpp.html">浏览该文件的文档.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span> </div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno">    8</span><span class="comment">// 在网关上节点名称不能使用https协议，但是在windows应用中是可以的。</span></div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno">    9</span><span class="preprocessor">#pragma once</span></div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno">   10</span> </div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno">   11</span><span class="preprocessor">#include &lt;string&gt;</span></div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno">   12</span><span class="preprocessor">#include &lt;functional&gt;</span></div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno">   13</span><span class="preprocessor">#include &lt;memory&gt;</span></div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno">   14</span><span class="preprocessor">#include &lt;vector&gt;</span></div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno">   15</span> </div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno">   16</span><span class="preprocessor">#include &lt;alibabacloud/oss/OssClient.h&gt;</span></div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno">   17</span> </div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno">   18</span><span class="preprocessor">#include &quot;<a class="code" href="../../d3/df7/ary__str_8hpp.html">ary_str.hpp</a>&quot;</span></div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno">   19</span><span class="preprocessor">#include &quot;<a class="code" href="../../dc/d8b/file_svr_itfc_8hpp.html">details/fileSvrItfc.hpp</a>&quot;</span></div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno">   20</span> </div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno">   21</span><span class="keyword">namespace </span><a class="code hl_namespace" href="../../df/d8d/namespacewheels.html">wheels</a> {</div>
<div class="foldopen" id="foldopen00022" data-start="{" data-end="};">
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"><a class="line" href="../../db/d0b/classwheels_1_1ali_o_s_s.html">   22</a></span>    <span class="keyword">class </span><a class="code hl_class" href="../../db/d0b/classwheels_1_1ali_o_s_s.html">aliOSS</a> : <span class="keyword">public</span> <a class="code hl_struct" href="../../d7/d64/structwheels_1_1i_file_service.html">iFileService</a></div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno">   23</span>    {</div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno">   24</span>    <span class="keyword">public</span>:</div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"><a class="line" href="../../db/d0b/classwheels_1_1ali_o_s_s.html#a30ca1fd2a45039b0b058914225074620">   25</a></span>        <span class="keyword">using </span><a class="code hl_typedef" href="../../db/d0b/classwheels_1_1ali_o_s_s.html#a30ca1fd2a45039b0b058914225074620">errCode</a> = <a class="code hl_enumeration" href="../../d7/d64/structwheels_1_1i_file_service.html#a4caa50c3e01e22c71bb52d16657c48d0">emErrCode</a>;</div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno">   26</span>    <span class="keyword">private</span>:</div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno">   27</span>        std::string m_endpoint__;     <span class="comment">// 服务节点</span></div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno">   28</span>        std::string __m_acckeyId;     <span class="comment">// 访问服务身份ID</span></div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno">   29</span>        std::string __m_acckeySec;    <span class="comment">// 访问服务密码</span></div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno">   30</span>        std::string __m_bktName;      <span class="comment">// bucket 名称，类似于windows下的盘符</span></div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno">   31</span> </div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno">   32</span>        std::atomic&lt; size_t &gt;   __m_buff_size;</div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno">   33</span>        </div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno">   34</span>        std::shared_ptr&lt; AlibabaCloud::OSS::ClientConfiguration &gt;   pt_conf__;</div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno">   35</span>        std::shared_ptr&lt; AlibabaCloud::OSS::OssClient&gt;              pt_client__;</div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno">   36</span>        std::function&lt; bool ( <a class="code hl_enumeration" href="../../d7/d64/structwheels_1_1i_file_service.html#a4caa50c3e01e22c71bb52d16657c48d0">emErrCode</a> , uint8_t * , <span class="keywordtype">size_t</span> )&gt;    __m_cb;</div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno">   37</span>        std::function&lt; bool ( <a class="code hl_enumeration" href="../../d7/d64/structwheels_1_1i_file_service.html#a4caa50c3e01e22c71bb52d16657c48d0">emErrCode</a> , <span class="keywordtype">size_t</span> )&gt;    __m_upload_cb;</div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno">   38</span>        std::function&lt; void ( <a class="code hl_typedef" href="../../db/d0b/classwheels_1_1ali_o_s_s.html#a30ca1fd2a45039b0b058914225074620">errCode</a> , <span class="keywordtype">size_t</span> , <span class="keywordtype">int</span> , <span class="keyword">const</span> std::string&amp; )&gt; __run_cb;</div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno">   39</span>        <span class="comment">// 如果要延迟下载，则将任务添加到这个表中。然后在run函数中执行实际下载动作</span></div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno">   40</span>        std::vector&lt;std::function&lt;bool () &gt; &gt;          __m_missions;</div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno">   41</span> </div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno">   42</span>        std::atomic&lt; long &gt;              m_overtime__;</div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno">   43</span>    <span class="keyword">private</span>:</div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno">   49</span>        <span class="keywordtype">bool</span> __real_upload_file( <span class="keyword">const</span> std::string&amp; file , <span class="keyword">const</span> std::string&amp; rfile );</div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno">   56</span>        <span class="keywordtype">bool</span> __real_download_file( <span class="keyword">const</span> std::string&amp; from , <span class="keyword">const</span> std::string&amp; dest );</div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno">   63</span>        <span class="keywordtype">bool</span> __real_download_file( <span class="keyword">const</span> std::string&amp; from , <span class="keywordtype">char</span> * buffer );</div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno">   64</span>    <span class="keyword">public</span>:</div>
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno">   73</span>        <a class="code hl_function" href="../../db/d0b/classwheels_1_1ali_o_s_s.html#a0436dadf8e1163df16c1753bc278ba24">aliOSS</a>(<span class="keyword">const</span> std::string&amp;);</div>
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno">   74</span>        <a class="code hl_function" href="../../db/d0b/classwheels_1_1ali_o_s_s.html#a0436dadf8e1163df16c1753bc278ba24">aliOSS</a>(<span class="keyword">const</span> std::string&amp; bucket , <span class="keyword">const</span> std::string&amp; endpoint , <span class="keyword">const</span> std::string&amp; acckeyId , <span class="keyword">const</span> std::string&amp; acckeySec );</div>
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno">   75</span>        <span class="keyword">virtual</span> <a class="code hl_function" href="../../db/d0b/classwheels_1_1ali_o_s_s.html#ad49f8b1c25f604a64cdef6aaa82b8721">~aliOSS</a>();</div>
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno">   76</span> </div>
<div class="foldopen" id="foldopen00077" data-start="{" data-end="}">
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"><a class="line" href="../../db/d0b/classwheels_1_1ali_o_s_s.html#af1804b32c8d7332c05434d04032bec35">   77</a></span>        <span class="keyword">inline</span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../db/d0b/classwheels_1_1ali_o_s_s.html#af1804b32c8d7332c05434d04032bec35">bufferSize</a>( <span class="keywordtype">size_t</span> s )<span class="keyword">final</span></div>
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno">   78</span>        {</div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno">   79</span>            __m_buff_size = s;</div>
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno">   80</span>        }</div>
</div>
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno">   81</span> </div>
<div class="foldopen" id="foldopen00082" data-start="{" data-end="}">
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"><a class="line" href="../../db/d0b/classwheels_1_1ali_o_s_s.html#a624d9ac0a0dcd5db39bbb46c2b9ca6cc">   82</a></span>        <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../db/d0b/classwheels_1_1ali_o_s_s.html#a624d9ac0a0dcd5db39bbb46c2b9ca6cc">overtime</a>( <span class="keywordtype">long</span> ovt ) <span class="keyword">final</span></div>
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno">   83</span>        {</div>
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno">   84</span>            m_overtime__ = ovt * 1000;</div>
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno">   85</span>        }</div>
</div>
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno">   93</span>        <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="../../db/d0b/classwheels_1_1ali_o_s_s.html#af3d24d7ed21669a57c47806d1d807b02">download</a>( <span class="keyword">const</span> std::string&amp; from , <span class="keyword">const</span> std::string&amp; dest = <span class="stringliteral">&quot;&quot;</span> , <span class="keywordtype">bool</span> autoRun = <span class="keyword">true</span> ) final;</div>
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno"><a class="line" href="../../db/d0b/classwheels_1_1ali_o_s_s.html#ae166624002962e005d289a98b7d44dfe">  100</a></span>        virtual <span class="keywordtype">void</span> <a class="code hl_function" href="../../db/d0b/classwheels_1_1ali_o_s_s.html#af3d24d7ed21669a57c47806d1d807b02">download</a>( const <a class="code hl_namespace" href="../../d8/dcc/namespacestd.html">std</a>::<span class="keywordtype">string</span>&amp; from , const <a class="code hl_namespace" href="../../d8/dcc/namespacestd.html">std</a>::<span class="keywordtype">string</span>&amp; dest , <a class="code hl_namespace" href="../../d8/dcc/namespacestd.html">std</a>::function&lt; <span class="keywordtype">bool</span> ( <a class="code hl_typedef" href="../../db/d0b/classwheels_1_1ali_o_s_s.html#a30ca1fd2a45039b0b058914225074620">errCode</a> , uint8_t * , <span class="keywordtype">size_t</span>  ) &gt; cb , <span class="keywordtype">bool</span> autoRun = true ) final;</div>
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno">  108</span>        virtual <span class="keywordtype">void</span> <a class="code hl_function" href="../../db/d0b/classwheels_1_1ali_o_s_s.html#af3d24d7ed21669a57c47806d1d807b02">download</a>( const <a class="code hl_namespace" href="../../d8/dcc/namespacestd.html">std</a>::<span class="keywordtype">string</span>&amp; from , <span class="keywordtype">char</span> * buffer , <a class="code hl_namespace" href="../../d8/dcc/namespacestd.html">std</a>::function&lt; <span class="keywordtype">bool</span> ( <a class="code hl_typedef" href="../../db/d0b/classwheels_1_1ali_o_s_s.html#a30ca1fd2a45039b0b058914225074620">errCode</a> , uint8_t * , <span class="keywordtype">size_t</span> ) &gt; cb , <span class="keywordtype">bool</span> autoRun = true ) final;</div>
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno">  109</span> </div>
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno">  117</span>        virtual <span class="keywordtype">bool</span> <a class="code hl_function" href="../../db/d0b/classwheels_1_1ali_o_s_s.html#af3d24d7ed21669a57c47806d1d807b02">download</a>( const <a class="code hl_typedef" href="../../df/d8d/namespacewheels.html#a17042f775c3493c1f9592ca7883dbd5e">ArrayString</a>&amp; from , const <a class="code hl_typedef" href="../../df/d8d/namespacewheels.html#a17042f775c3493c1f9592ca7883dbd5e">ArrayString</a>&amp; dest , <span class="keywordtype">bool</span> autoRun = true ) final;</div>
<div class="line"><a id="l00121" name="l00121"></a><span class="lineno">  121</span>        virtual <span class="keywordtype">void</span> <a class="code hl_function" href="../../db/d0b/classwheels_1_1ali_o_s_s.html#af3d24d7ed21669a57c47806d1d807b02">download</a>( const <a class="code hl_typedef" href="../../df/d8d/namespacewheels.html#a17042f775c3493c1f9592ca7883dbd5e">ArrayString</a>&amp; from , const <a class="code hl_typedef" href="../../df/d8d/namespacewheels.html#a17042f775c3493c1f9592ca7883dbd5e">ArrayString</a>&amp; dest , <a class="code hl_namespace" href="../../d8/dcc/namespacestd.html">std</a>::function&lt; <span class="keywordtype">bool</span> ( <a class="code hl_typedef" href="../../db/d0b/classwheels_1_1ali_o_s_s.html#a30ca1fd2a45039b0b058914225074620">errCode</a> , uint8_t * , <span class="keywordtype">size_t</span> ) &gt; cb, <span class="keywordtype">bool</span> autoRun = true ) final;</div>
<div class="line"><a id="l00131" name="l00131"></a><span class="lineno">  131</span>        virtual <span class="keywordtype">bool</span> <a class="code hl_function" href="../../db/d0b/classwheels_1_1ali_o_s_s.html#a6c61d77f25ef9dea32e80053742a5a77">upload</a>( const <a class="code hl_namespace" href="../../d8/dcc/namespacestd.html">std</a>::<span class="keywordtype">string</span>&amp; file , const <a class="code hl_namespace" href="../../d8/dcc/namespacestd.html">std</a>::<span class="keywordtype">string</span>&amp; remote_file ,  <span class="keywordtype">bool</span> autoRun = true ) final;</div>
<div class="line"><a id="l00132" name="l00132"></a><span class="lineno">  132</span>        virtual <span class="keywordtype">void</span> <a class="code hl_function" href="../../db/d0b/classwheels_1_1ali_o_s_s.html#a6c61d77f25ef9dea32e80053742a5a77">upload</a>( const <a class="code hl_namespace" href="../../d8/dcc/namespacestd.html">std</a>::<span class="keywordtype">string</span>&amp; file , const <a class="code hl_namespace" href="../../d8/dcc/namespacestd.html">std</a>::<span class="keywordtype">string</span>&amp; remote_file, <a class="code hl_namespace" href="../../d8/dcc/namespacestd.html">std</a>::function&lt; <span class="keywordtype">bool</span> ( <a class="code hl_typedef" href="../../db/d0b/classwheels_1_1ali_o_s_s.html#a30ca1fd2a45039b0b058914225074620">errCode</a> , <span class="keywordtype">size_t</span> )&gt; cb ,<span class="keywordtype">bool</span> autoRun = true ) final;</div>
<div class="line"><a id="l00139" name="l00139"></a><span class="lineno">  139</span>        virtual <span class="keywordtype">bool</span> <a class="code hl_function" href="../../db/d0b/classwheels_1_1ali_o_s_s.html#a6c61d77f25ef9dea32e80053742a5a77">upload</a>( const <a class="code hl_typedef" href="../../df/d8d/namespacewheels.html#a17042f775c3493c1f9592ca7883dbd5e">ArrayString</a>&amp; from , <span class="keywordtype">bool</span> autoRun = true ) final;</div>
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno">  140</span>        virtual <span class="keywordtype">void</span> <a class="code hl_function" href="../../db/d0b/classwheels_1_1ali_o_s_s.html#a6c61d77f25ef9dea32e80053742a5a77">upload</a>( const <a class="code hl_typedef" href="../../df/d8d/namespacewheels.html#a17042f775c3493c1f9592ca7883dbd5e">ArrayString</a>&amp; file , <a class="code hl_namespace" href="../../d8/dcc/namespacestd.html">std</a>::function&lt; <span class="keywordtype">bool</span> ( <a class="code hl_typedef" href="../../db/d0b/classwheels_1_1ali_o_s_s.html#a30ca1fd2a45039b0b058914225074620">errCode</a> , <span class="keywordtype">size_t</span> )&gt; cb , <span class="keywordtype">bool</span> autoRun ) final;</div>
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno">  145</span>        virtual <span class="keywordtype">bool</span> <a class="code hl_function" href="../../db/d0b/classwheels_1_1ali_o_s_s.html#ac156a5ce5e1b6a5a0a545086e85cfb04">del</a>( const <a class="code hl_namespace" href="../../d8/dcc/namespacestd.html">std</a>::<span class="keywordtype">string</span>&amp; rem ) final;</div>
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno">  149</span>        virtual <span class="keywordtype">void</span> <a class="code hl_function" href="../../db/d0b/classwheels_1_1ali_o_s_s.html#a13eae86f9bd8716d6465bf883da8233c">setUser</a>( const <a class="code hl_namespace" href="../../d8/dcc/namespacestd.html">std</a>::<span class="keywordtype">string</span>&amp; acc , const <a class="code hl_namespace" href="../../d8/dcc/namespacestd.html">std</a>::<span class="keywordtype">string</span>&amp; pswd ) final;</div>
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno">  150</span> </div>
<div class="line"><a id="l00154" name="l00154"></a><span class="lineno">  154</span>        virtual <span class="keywordtype">void</span> <a class="code hl_function" href="../../db/d0b/classwheels_1_1ali_o_s_s.html#a1a1d44271c77d35e24604ec320f12481">addUrl</a>( const <a class="code hl_namespace" href="../../d8/dcc/namespacestd.html">std</a>::<span class="keywordtype">string</span>&amp; url ) final;</div>
<div class="line"><a id="l00155" name="l00155"></a><span class="lineno">  155</span>        virtual <span class="keywordtype">void</span> <a class="code hl_function" href="../../db/d0b/classwheels_1_1ali_o_s_s.html#ae7c50e1926a1395ba5b266fd179bccee">run</a>() final;</div>
<div class="line"><a id="l00156" name="l00156"></a><span class="lineno">  156</span>        virtual <span class="keywordtype">void</span> <a class="code hl_function" href="../../db/d0b/classwheels_1_1ali_o_s_s.html#ae7c50e1926a1395ba5b266fd179bccee">run</a>( <a class="code hl_namespace" href="../../d8/dcc/namespacestd.html">std</a>::function&lt; <span class="keywordtype">bool</span>( <a class="code hl_enumeration" href="../../d7/d64/structwheels_1_1i_file_service.html#a4caa50c3e01e22c71bb52d16657c48d0">emErrCode</a> , <span class="keywordtype">size_t</span> , <span class="keywordtype">int</span> , const <a class="code hl_namespace" href="../../d8/dcc/namespacestd.html">std</a>::<span class="keywordtype">string</span>&amp; ) &gt; cb ) final;</div>
<div class="line"><a id="l00157" name="l00157"></a><span class="lineno">  157</span> </div>
<div class="line"><a id="l00161" name="l00161"></a><span class="lineno">  161</span>        virtual <a class="code hl_typedef" href="../../db/d0b/classwheels_1_1ali_o_s_s.html#a30ca1fd2a45039b0b058914225074620">errCode</a> <a class="code hl_function" href="../../db/d0b/classwheels_1_1ali_o_s_s.html#a68e7693ef0431725000559b87767b28d">ls</a>( <a class="code hl_typedef" href="../../df/d8d/namespacewheels.html#a17042f775c3493c1f9592ca7883dbd5e">ArrayString</a>&amp; rst ) final;</div>
<div class="line"><a id="l00162" name="l00162"></a><span class="lineno">  162</span>        virtual <span class="keywordtype">void</span> <a class="code hl_function" href="../../db/d0b/classwheels_1_1ali_o_s_s.html#a68e7693ef0431725000559b87767b28d">ls</a>( <a class="code hl_namespace" href="../../d8/dcc/namespacestd.html">std</a>::function&lt; <span class="keywordtype">void</span> ( <a class="code hl_typedef" href="../../db/d0b/classwheels_1_1ali_o_s_s.html#a30ca1fd2a45039b0b058914225074620">errCode</a> , <a class="code hl_typedef" href="../../df/d8d/namespacewheels.html#a17042f775c3493c1f9592ca7883dbd5e">ArrayString</a>&amp; ) &gt; cb ) final;</div>
<div class="line"><a id="l00169" name="l00169"></a><span class="lineno">  169</span>        virtual <a class="code hl_typedef" href="../../db/d0b/classwheels_1_1ali_o_s_s.html#a30ca1fd2a45039b0b058914225074620">errCode</a> <a class="code hl_function" href="../../db/d0b/classwheels_1_1ali_o_s_s.html#a9a63b3f41a744e57ba759cd65fe9bcca">access</a>( const <a class="code hl_namespace" href="../../d8/dcc/namespacestd.html">std</a>::<span class="keywordtype">string</span>&amp; url , <span class="keywordtype">int</span> type ) final;</div>
<div class="line"><a id="l00174" name="l00174"></a><span class="lineno">  174</span>        virtual <a class="code hl_typedef" href="../../db/d0b/classwheels_1_1ali_o_s_s.html#a30ca1fd2a45039b0b058914225074620">errCode</a> <a class="code hl_function" href="../../db/d0b/classwheels_1_1ali_o_s_s.html#a3367bb5c19db3eacd4dfdab3fea114ff">cd</a>( const <a class="code hl_namespace" href="../../d8/dcc/namespacestd.html">std</a>::<span class="keywordtype">string</span>&amp; path ) final;</div>
<div class="line"><a id="l00180" name="l00180"></a><span class="lineno">  180</span>        virtual inline <span class="keywordtype">size_t</span> <a class="code hl_function" href="../../db/d0b/classwheels_1_1ali_o_s_s.html#af748fd213d98fa485f3e29fd3358894e">size</a>( const <a class="code hl_namespace" href="../../d8/dcc/namespacestd.html">std</a>::<span class="keywordtype">string</span>&amp; file ) final;</div>
<div class="line"><a id="l00181" name="l00181"></a><span class="lineno">  181</span>    };</div>
</div>
<div class="line"><a id="l00182" name="l00182"></a><span class="lineno">  182</span>}</div>
<div class="ttc" id="aary__str_8hpp_html"><div class="ttname"><a href="../../d3/df7/ary__str_8hpp.html">ary_str.hpp</a></div></div>
<div class="ttc" id="aclasswheels_1_1ali_o_s_s_html"><div class="ttname"><a href="../../db/d0b/classwheels_1_1ali_o_s_s.html">wheels::aliOSS</a></div><div class="ttdef"><b>定义</b> <a href="#l00022">aliOSS.hpp:23</a></div></div>
<div class="ttc" id="aclasswheels_1_1ali_o_s_s_html_a0436dadf8e1163df16c1753bc278ba24"><div class="ttname"><a href="../../db/d0b/classwheels_1_1ali_o_s_s.html#a0436dadf8e1163df16c1753bc278ba24">wheels::aliOSS::aliOSS</a></div><div class="ttdeci">aliOSS(const std::string &amp;)</div><div class="ttdoc">这个函数会从配置文件中读取介个配置参数。其他相关参数采用SDK默认值</div><div class="ttdef"><b>定义</b> <a href="../../de/d0c/ali_o_s_s_8cpp_source.html#l00019">aliOSS.cpp:19</a></div></div>
<div class="ttc" id="aclasswheels_1_1ali_o_s_s_html_a13eae86f9bd8716d6465bf883da8233c"><div class="ttname"><a href="../../db/d0b/classwheels_1_1ali_o_s_s.html#a13eae86f9bd8716d6465bf883da8233c">wheels::aliOSS::setUser</a></div><div class="ttdeci">virtual void setUser(const std::string &amp;acc, const std::string &amp;pswd) final</div><div class="ttdoc">设置用户名和密码</div><div class="ttdef"><b>定义</b> <a href="../../de/d0c/ali_o_s_s_8cpp_source.html#l00426">aliOSS.cpp:426</a></div></div>
<div class="ttc" id="aclasswheels_1_1ali_o_s_s_html_a1a1d44271c77d35e24604ec320f12481"><div class="ttname"><a href="../../db/d0b/classwheels_1_1ali_o_s_s.html#a1a1d44271c77d35e24604ec320f12481">wheels::aliOSS::addUrl</a></div><div class="ttdeci">virtual void addUrl(const std::string &amp;url) final</div><div class="ttdoc">指定URL</div><div class="ttdef"><b>定义</b> <a href="../../de/d0c/ali_o_s_s_8cpp_source.html#l00432">aliOSS.cpp:432</a></div></div>
<div class="ttc" id="aclasswheels_1_1ali_o_s_s_html_a30ca1fd2a45039b0b058914225074620"><div class="ttname"><a href="../../db/d0b/classwheels_1_1ali_o_s_s.html#a30ca1fd2a45039b0b058914225074620">wheels::aliOSS::errCode</a></div><div class="ttdeci">emErrCode errCode</div><div class="ttdef"><b>定义</b> <a href="#l00025">aliOSS.hpp:25</a></div></div>
<div class="ttc" id="aclasswheels_1_1ali_o_s_s_html_a3367bb5c19db3eacd4dfdab3fea114ff"><div class="ttname"><a href="../../db/d0b/classwheels_1_1ali_o_s_s.html#a3367bb5c19db3eacd4dfdab3fea114ff">wheels::aliOSS::cd</a></div><div class="ttdeci">virtual errCode cd(const std::string &amp;path) final</div><div class="ttdoc">切换远程目录路径</div><div class="ttdef"><b>定义</b> <a href="../../de/d0c/ali_o_s_s_8cpp_source.html#l00521">aliOSS.cpp:521</a></div></div>
<div class="ttc" id="aclasswheels_1_1ali_o_s_s_html_a624d9ac0a0dcd5db39bbb46c2b9ca6cc"><div class="ttname"><a href="../../db/d0b/classwheels_1_1ali_o_s_s.html#a624d9ac0a0dcd5db39bbb46c2b9ca6cc">wheels::aliOSS::overtime</a></div><div class="ttdeci">virtual void overtime(long ovt) final</div><div class="ttdef"><b>定义</b> <a href="#l00082">aliOSS.hpp:82</a></div></div>
<div class="ttc" id="aclasswheels_1_1ali_o_s_s_html_a68e7693ef0431725000559b87767b28d"><div class="ttname"><a href="../../db/d0b/classwheels_1_1ali_o_s_s.html#a68e7693ef0431725000559b87767b28d">wheels::aliOSS::ls</a></div><div class="ttdeci">virtual errCode ls(ArrayString &amp;rst) final</div><div class="ttdoc">列出远程目录内容</div><div class="ttdef"><b>定义</b> <a href="../../de/d0c/ali_o_s_s_8cpp_source.html#l00458">aliOSS.cpp:458</a></div></div>
<div class="ttc" id="aclasswheels_1_1ali_o_s_s_html_a6c61d77f25ef9dea32e80053742a5a77"><div class="ttname"><a href="../../db/d0b/classwheels_1_1ali_o_s_s.html#a6c61d77f25ef9dea32e80053742a5a77">wheels::aliOSS::upload</a></div><div class="ttdeci">virtual bool upload(const std::string &amp;file, const std::string &amp;remote_file, bool autoRun=true) final</div><div class="ttdoc">上传文件到服务器</div><div class="ttdef"><b>定义</b> <a href="../../de/d0c/ali_o_s_s_8cpp_source.html#l00300">aliOSS.cpp:300</a></div></div>
<div class="ttc" id="aclasswheels_1_1ali_o_s_s_html_a9a63b3f41a744e57ba759cd65fe9bcca"><div class="ttname"><a href="../../db/d0b/classwheels_1_1ali_o_s_s.html#a9a63b3f41a744e57ba759cd65fe9bcca">wheels::aliOSS::access</a></div><div class="ttdeci">virtual errCode access(const std::string &amp;url, int type) final</div><div class="ttdoc">和linux access函数一样，用来检查文件的可访问性</div><div class="ttdef"><b>定义</b> <a href="../../de/d0c/ali_o_s_s_8cpp_source.html#l00505">aliOSS.cpp:505</a></div></div>
<div class="ttc" id="aclasswheels_1_1ali_o_s_s_html_ac156a5ce5e1b6a5a0a545086e85cfb04"><div class="ttname"><a href="../../db/d0b/classwheels_1_1ali_o_s_s.html#ac156a5ce5e1b6a5a0a545086e85cfb04">wheels::aliOSS::del</a></div><div class="ttdeci">virtual bool del(const std::string &amp;rem) final</div><div class="ttdoc">删除远程文件</div><div class="ttdef"><b>定义</b> <a href="../../de/d0c/ali_o_s_s_8cpp_source.html#l00411">aliOSS.cpp:411</a></div></div>
<div class="ttc" id="aclasswheels_1_1ali_o_s_s_html_ad49f8b1c25f604a64cdef6aaa82b8721"><div class="ttname"><a href="../../db/d0b/classwheels_1_1ali_o_s_s.html#ad49f8b1c25f604a64cdef6aaa82b8721">wheels::aliOSS::~aliOSS</a></div><div class="ttdeci">virtual ~aliOSS()</div><div class="ttdef"><b>定义</b> <a href="../../de/d0c/ali_o_s_s_8cpp_source.html#l00074">aliOSS.cpp:74</a></div></div>
<div class="ttc" id="aclasswheels_1_1ali_o_s_s_html_ae7c50e1926a1395ba5b266fd179bccee"><div class="ttname"><a href="../../db/d0b/classwheels_1_1ali_o_s_s.html#ae7c50e1926a1395ba5b266fd179bccee">wheels::aliOSS::run</a></div><div class="ttdeci">virtual void run() final</div><div class="ttdef"><b>定义</b> <a href="../../de/d0c/ali_o_s_s_8cpp_source.html#l00437">aliOSS.cpp:437</a></div></div>
<div class="ttc" id="aclasswheels_1_1ali_o_s_s_html_af1804b32c8d7332c05434d04032bec35"><div class="ttname"><a href="../../db/d0b/classwheels_1_1ali_o_s_s.html#af1804b32c8d7332c05434d04032bec35">wheels::aliOSS::bufferSize</a></div><div class="ttdeci">virtual void bufferSize(size_t s) final</div><div class="ttdef"><b>定义</b> <a href="#l00077">aliOSS.hpp:77</a></div></div>
<div class="ttc" id="aclasswheels_1_1ali_o_s_s_html_af3d24d7ed21669a57c47806d1d807b02"><div class="ttname"><a href="../../db/d0b/classwheels_1_1ali_o_s_s.html#af3d24d7ed21669a57c47806d1d807b02">wheels::aliOSS::download</a></div><div class="ttdeci">virtual bool download(const std::string &amp;from, const std::string &amp;dest=&quot;&quot;, bool autoRun=true) final</div><div class="ttdoc">下载文件操作</div><div class="ttdef"><b>定义</b> <a href="../../de/d0c/ali_o_s_s_8cpp_source.html#l00105">aliOSS.cpp:105</a></div></div>
<div class="ttc" id="aclasswheels_1_1ali_o_s_s_html_af748fd213d98fa485f3e29fd3358894e"><div class="ttname"><a href="../../db/d0b/classwheels_1_1ali_o_s_s.html#af748fd213d98fa485f3e29fd3358894e">wheels::aliOSS::size</a></div><div class="ttdeci">virtual size_t size(const std::string &amp;file) final</div><div class="ttdoc">读取远程文件的文件大小</div><div class="ttdef"><b>定义</b> <a href="../../de/d0c/ali_o_s_s_8cpp_source.html#l00530">aliOSS.cpp:530</a></div></div>
<div class="ttc" id="afile_svr_itfc_8hpp_html"><div class="ttname"><a href="../../dc/d8b/file_svr_itfc_8hpp.html">fileSvrItfc.hpp</a></div></div>
<div class="ttc" id="anamespacestd_html"><div class="ttname"><a href="../../d8/dcc/namespacestd.html">std</a></div><div class="ttdef"><b>定义</b> <a href="../../d1/d92/mandarava_2event_8hpp_source.html#l00038">event.hpp:39</a></div></div>
<div class="ttc" id="anamespacewheels_html"><div class="ttname"><a href="../../df/d8d/namespacewheels.html">wheels</a></div><div class="ttdoc">堆栈信息读取和保存记录</div><div class="ttdef"><b>定义</b> <a href="../../d3/df7/ary__str_8hpp_source.html#l00006">ary_str.hpp:7</a></div></div>
<div class="ttc" id="anamespacewheels_html_a17042f775c3493c1f9592ca7883dbd5e"><div class="ttname"><a href="../../df/d8d/namespacewheels.html#a17042f775c3493c1f9592ca7883dbd5e">wheels::ArrayString</a></div><div class="ttdeci">ary_str ArrayString</div><div class="ttdef"><b>定义</b> <a href="../../d3/df7/ary__str_8hpp_source.html#l00010">ary_str.hpp:10</a></div></div>
<div class="ttc" id="astructwheels_1_1i_file_service_html"><div class="ttname"><a href="../../d7/d64/structwheels_1_1i_file_service.html">wheels::iFileService</a></div><div class="ttdef"><b>定义</b> <a href="../../dc/d8b/file_svr_itfc_8hpp_source.html#l00013">fileSvrItfc.hpp:14</a></div></div>
<div class="ttc" id="astructwheels_1_1i_file_service_html_a4caa50c3e01e22c71bb52d16657c48d0"><div class="ttname"><a href="../../d7/d64/structwheels_1_1i_file_service.html#a4caa50c3e01e22c71bb52d16657c48d0">wheels::iFileService::emErrCode</a></div><div class="ttdeci">emErrCode</div><div class="ttdef"><b>定义</b> <a href="../../dc/d8b/file_svr_itfc_8hpp_source.html#l00015">fileSvrItfc.hpp:15</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.11.0
</small></address>
</div><!-- doc-content -->
</body>
</html>
